
# KB_SIZE=233
PREFIX=/tmp

all:
	./build.sh
	# gcc k.c -lcurl -ljansson
	
release:
	(cd web; pyinstaller ftun_login.py -y)

	mkdir -p $(PREFIX)/release/web
	mkdir -p $(PREFIX)/release/DEBIAN
	mkdir -p $(PREFIX)/release/opt/ftun
	cp deb/* $(PREFIX)/release -rf
	cp web/dist/ftun_login/* $(PREFIX)/release/opt/ftun/ -rf
	cp ftunsd $(PREFIX)//release/opt/ftun
	cp ftuncd $(PREFIX)//release/opt/ftun

	dpkg -b  $(PREFIX)/release/ /tmp/a.deb

run:
	$(PREFIX)//release/opt/ftun/ftunsd

clean:
	rm ftunsd *.o